
ticketHub.controller('changeOrderQueryCtrls',function($scope,$http){
	$scope.show = false;
	$scope.postData = {
			orderId:"",			
	};	
	$scope.query = function(){
		layer.load(3,{shadeClose:true});//加载层；
		$http({
			url:'../orderChangeBack/endorseSearch?temp='+Math.random(),
			method:'post',
			data:$scope.postData
		}).success(function(data,header,config,status){
			layer.closeAll();				
			if(data.status=="1001"){				
				$scope.show = true;
				$scope.data = data.data;
							
			}else{
				layer.alert("查询失败，"+data.message)
			}
			//响应成功
		}).error(function(data,header,config,status){
			layer.closeAll();	
			console.log(data)
			layer.alert("请求失败，请检查网络连接")
			//处理响应失败
		});
	}
})
	
	
